#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
void init(int a[10])
{
	for (int i = 0; i < 10; i++)
	{
		a[i] = 0;
	}
}
void print(int a[10])
{
	for (int i = 0; i < 10; i++)
	{
		printf("%d ", a[i]);
	}
}
void reverse(int a[10])
{
	int i = 0, j = 9;
	int temp = 0;
	for (; i <= j; i++, j--)
	{
		temp = a[i];
		a[i] = a[j];
		a[j] = temp;

	}
}
int main()
{
	int a[10] = {1,2,3,4,5,6,7,8,9,10};
	reverse(a);
	for (int i = 0; i < 10; i++)
	{
		printf("%d ",a[i]);
	}
	printf("\n");
	init(a);
	print(a);
	
	return 0;
}